<?php
session_start();
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
    header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
    header( "Cache-Control: no-cache, must-revalidate" );
    header( "Pragma: no-cache" );
#error_reporting(0);
#echo $_SESSION["user"];
$user = $_SESSION["user"];
#echo $user;
if($user==""){ 

require_once "logon.php";
}
else
{

echo '<html>
<head> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> ';


require_once 'Common/theme.php';
require_once 'Common/values.php';
require_once 'js/updatejob.php';
echo '<TITLE>'.$title.' S:'.$sourceRev.' D:'.$databaseRev.'</TITLE><body>';

require_once "menubar.php";
require_once 'links/menubar.php';

echo'<br><br>
<Table width="100%" vAlign=top class="noborder">';




echo '<tr class="noborder"><td class="noborder" >';


echo '</td><td class="noborder">';

switch ($_GET[p])
{
#Helpdesk
case ("hnew");
require_once "helpdesk/new.php";
	break;
case ("hmy");
require_once "helpdesk/home.php";
	break;
case ("hallo");
require_once "helpdesk/allopen.php";
	break;
case ("hupdate");
require_once "helpdesk/update.php";
	break;
    case ("hupdatea");
require_once "helpdesk/updatea.php";
	break;
case ("h");
require_once "mainIdle.php";
	break;
case ("hsearch");
require_once "helpdesk/search.php";
	break;
case ("hsearchp");
require_once "helpdesk/searchpublic.php";
	break;

case ("hsearchau");
require_once "helpdesk/searchau.php";
	break;
case ("hsearchaus");
require_once "helpdesk/searchaus.php";
	break;

case ("hsearcha");
require_once "helpdesk/searcha.php";
	break;
case ("hsearchas");
require_once "helpdesk/searchas.php";
	break;

case ("hsearchaa");
require_once "helpdesk/searchaua.php";
	break;
case ("hfilter");
require_once "helpdesk/filter.php";
	break;
case ("hfilter2");
require_once "helpdesk/Filter2.php";
	break;
case ("events");
require_once "helpdesk/events.php";
	break;
case ("stats");
require_once "helpdesk/stats.php";
	break;
case ("retrieve");
require_once "helpdesk/archiveretrieve.php";
	break;
case ("sla");
require_once "helpdesk/sla.php";
	break;

#IP Manager
case ("ips");
require_once "ipmanager/site.php";
	break;
case ("ipupdate");
require_once "ipmanager/uinsert.php";
	break;
#KB
case ("kb");
require_once "kb/index.php";
	break;
case ("kbv");
require_once "kb/view.php";
	break;
case ("kbsearch");
require_once "kb/search.php";
	break;
case ("kbnew");
require_once "kb/new.php";
	break;
case ("kbnewfolder");
require_once "kb/newfolder.php";
	break;
case ("kbadd");
require_once "kb/add.php";
	break;
case ("kbaddfolder");
require_once "kb/addfolder.php";
	break;
case ("kbdelete");
require_once "kb/delete.php";
	break;
case ("kbdeletefolder");
require_once "kb/deletefolder.php";
	break;
case ("kbupload");
require_once "kb/upload.php";
	break;
case ("kbout");
require_once "kb/checkout.php";
	break;
case ("kbin");
require_once "kb/checkin.php";
	break;
case ("kbupdate");
require_once "kb/update.php";
	break;
case ("kbupdatedoc");
require_once "kb/updatedoc.php";
	break;
case ("kbchange");
require_once "kb/change.php";
	break;

#Projects
case ("prnew");
require_once "projects/new.php";
	break;
case ("prallo");
require_once "projects/allopen.php";
	break;
case ("prupdate");
require_once "projects/update.php";
	break;
case ("psearch");
require_once "projects/search.php";
	break;
case ("prsearchau");
require_once "projects/searchau.php";
	break;
case ("pradd");
require_once "projects/new.php";
	break;
case ("prdocuments");
require_once "projects/documents.php";
	break;
case ("prupload");
require_once "projects/upload.php";
	break;
case ("prhelpdesk");
require_once "projects/helpdesk.php";
	break;
case ("prmeetings");
require_once "projects/meetings.php";
	break;

#Misc
case ("");
require_once "mainidle.php";
	break;

#Links
case ("lview");
require_once "links/view.php";
	break;
case ("ladd");
require_once "links/add.php";
	break;

#Phone Numbers
case ("pview");
require_once "Phone/view.php";
	break;
case ("padd");
require_once "Phone/add.php";
	break;


#Loan
case ("loview");
require_once "loan/view.php";
	break;
case ("loadd");
require_once "loan/add.php";
	break;

#Invertory
case ("iview");
require_once "inventory/view.php";
	break;
case ("iupdate");
require_once "inventory/update.php";
	break;
case ("iupdate1");
require_once "inventory/insertu.php";
	break;
case ("iadd");
require_once "inventory/add.php";
	break;
case ("irecycle");
require_once "inventory/recycle.php";
	break;


#System
case ("susers");
require_once "system/users.php";
	break;
case ("sadduser");
require_once "system/adduser.php";
	break;
case ("public");
require_once "system/public.php";
	break;
case ("shview");
require_once "system/helpdesk/view.php";
	break;
case ("shviews");
require_once "system/helpdesk/select.php";
	break;
case ("shupdate");
require_once "system/helpdesk/uinsert.php";
	break;
case ("shadd");
require_once "system/helpdesk/add.php";
	break;
case ("cpasswd");
require_once "system/cpasswd.php";
	break;
case ("theme");
require_once "system/theme.php";
	break;
case ("sinventory");
require_once "system/inventory.php";
	break;
case ("settings");
require_once "system/settings.php";
	break;
}





echo '</td></tr><tr vAlign=Bottom><td style="border:0px;" colspan=2>';
require_once "Common/footer.php";
echo '</tr></table>';

}

?>